import json
from config import BASE_DIR

def login_json(filename):
    with open(filename,encoding='utf-8') as f:
        data_list = json.load(f)
        new_list = []
        for i in data_list:
            new_list.append(tuple(i.values()))
        return new_list
if __name__ == '__main__':
    data_list=login_json(BASE_DIR + '/data/add_emp.json')
    print(data_list)

